-- GENERATED SPELL FOR [Great Father Arctikus] --


function spell0_1260(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(465,pUnit)
pUnit:RegisterEvent('Sorts_1260', 659, 1)
end

function spell1_1260(pUnit, Event) --@Lesser Heal,Heal--
pUnit:FullCastSpellOnTarget(2053,pUnit)
pUnit:RegisterEvent('Sorts_1260', 2500, 1)
end

function spell2_1260(pUnit, Event) --@Renew,n/a--
pUnit:FullCastSpellOnTarget(139,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1260', 15000, 1)
end

function Sorts_1260(pUnit, Event)
local choix_sorts_1260 = math.random(0, 2)
if choix_sorts_1260 == 0 then
pUnit:RegisterEvent('spell0_1260', 1, 1)
end
if choix_sorts_1260 == 1 then
pUnit:RegisterEvent('spell1_1260', 1, 1)
end
if choix_sorts_1260 == 2 then
pUnit:RegisterEvent('spell2_1260', 1, 1)
end
end

function mob1260_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1260', math.random(1500, 3000), 1)
end

function mob1260_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1260_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1260_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1260, 1, 'mob1260_Action')
RegisterUnitEvent(1260, 2, 'mob1260_Leave')
RegisterUnitEvent(1260, 3, 'mob1260_Kill')
RegisterUnitEvent(1260, 4, 'mob1260_Die')
